package com.atgugui.springcloud.service.impl;

import com.atgugui.springcloud.dao.PaymentDao;
import com.atgugui.springcloud.entities.Payment;
import com.atgugui.springcloud.service.PaymentService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PaymentServiceImpl implements PaymentService {
    @Autowired
    private PaymentDao paymentDao;

    public  int creat(Payment payment){
        return paymentDao.create(payment);
    }

    public  Payment getPaymentById( Long id){
        return  paymentDao.getPaymentById(id);
    }


}
